//
//  WJView.m
//  RAC
//
//  Created by 宜必鑫科技 on 2017/10/27.
//  Copyright © 2017年 宜必鑫科技. All rights reserved.
//

#import "WJView.h"

@implementation WJView

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.backgroundColor    = [UIColor redColor];
        UIButton *btn           = [UIButton buttonWithType:UIButtonTypeCustom];
        btn.frame               = CGRectMake(20, 30, 80, 30);
        btn.backgroundColor     = [UIColor blueColor];
        btn.tag = 100;
        [self addSubview:btn];
        [btn addTarget:self action:@selector(btnClick:) forControlEvents:UIControlEventTouchUpInside];
    }
    return self;
}
- (void)btnClick:(UIButton *)btn
{
    WJLogError(@"点击了WJView UIButton");
}
@end
